package com.review.cli;

import picocli.CommandLine;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;

@Command(
	name = "review",
	version = "0.1.0",
	description = "Code review agent CLI",
	subcommands = {
		ReviewCommand.class,
		CallGraphCommand.class,
		ProjectAnalyzeCommand.class
	}
)
public class Main implements Runnable {

	@Option(names = {"-v", "--version"}, description = "Print version", defaultValue = "false")
	boolean printVersion;

	@Override
	public void run() {
		if (printVersion) {
			System.out.println("review-agent 0.1.0");
		}
	}

	public static void main(String[] args) {
		int exit = new CommandLine(new Main()).execute(args);
		System.exit(exit);
	}
}

